<template>
  <div class="province-sale-box">
    <div class="select-box">
      <div class="province-box">
        <div class="select1">
          <AreaSelect></AreaSelect>
        </div>
        <DatePicker></DatePicker>
      </div>
    </div>
    <SumSale></SumSale>
    <TabArea></TabArea>
  </div>
</template>

<script>
import { Bus } from "../../Bus";
import AreaSelect from "../../components/sales/areaSelect";
import DatePicker from "../../components/sales/DatePicker";
import SumSale from "../../components/sales/SumSale";
import TabArea from "../../components/sales/TabArea";
export default {
  components: {
    AreaSelect,
    DatePicker,
    SumSale,
    TabArea,
  },
  data() {
    return {
      isShow: true,
      lists: [
        {
          name: "省",
          prop: "province",
        },
        {
          name: "市",
          prop: "city",
        },
        {
          name: "区",
          prop: "area",
        },
        {
          name: "销量",
          prop: "sales",
        },
      ],
      areaDatas: [
        {
          province: "四川省",
          city: "成都市",
          area: "高新区",
          sales: 34,
        },
      ],
    };
  },
  mounted() {
    Bus.$emit("isshowcity", this.isShow);
    Bus.$emit("isshowarea", this.isShow);
    Bus.$emit("area-lists", this.lists);
    Bus.$emit("area-datas", this.areaDatas);
  },
};
</script>

<style lang="less" scoped>
.province-sale-box {
  padding-top: 30px;
}
.select-box {
  margin-left: 30px;
  width: inherit;
}
.province-box {
  display: flex;
}
.select1 {
  margin-right: 50px;
  width: 400px;
}
</style>